package lvbu.wang.lvbuoperator.bean;

import java.io.Serializable;

/**
 * Created by DaiQing.Zha on 2016/11/1 0001.
 */
public class BleMotorInfo implements Serializable{

    private long motorId;                   // 电机流水号
    private String imei;                    // imei:15位
    private String motorName;             // 车辆名称：用于显示在手机或网页上
    private int powerLevel;             // 助力等级
    private int speedLimitValue; //超速报警
    private float circumference;       // 电机轮周长(单位：米)
    private String bluetoothAddress;// 电机蓝牙地址
    private float bikeWeight;      // 车重(单位：kg)
    private float loadWeight;                // 载重（骑行人员的重量，包括行李等）(单位：kg)
    private boolean isOnline;              // 是否在线：离线和在线是更改此字段
    private String hardwareVersion;       // 硬件版本号
    private String firmwareVersion;     // 固件版本号
    public String bindDate;             //绑定日期
    public String statusCode;       //状态代码
    public String assistantMode;  //助力模式
    public int batteryNum;       //电池个数
    public String batteryModel;     //电池型号
    public String motorSeries;  //电机系列
    public String wheelStyle;        //前轮或者后轮，01表示前轮、02表示后轮
    public int batteryRate;     //电池功率
    private int upHillPowerLevel;             // 爬坡模式助力等级
    public float upHillAngle;

    public long getMotorId() {
        return motorId;
    }

    public void setMotorId(long motorId) {
        this.motorId = motorId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getMotorName() {
        return motorName;
    }

    public void setMotorName(String motorName) {
        this.motorName = motorName;
    }

    public int getPowerLevel() {
        return powerLevel;
    }

    public void setPowerLevel(int powerLevel) {
        this.powerLevel = powerLevel;
    }


    public int getSpeedLimitValue() {
        return speedLimitValue;
    }

    public void setSpeedLimitValue(int speedLimitValue) {
        this.speedLimitValue = speedLimitValue;
    }

    public float getCircumference() {
        return circumference;
    }

    public void setCircumference(float circumference) {
        this.circumference = circumference;
    }

    public String getBluetoothAddress() {
        return bluetoothAddress;
    }

    public void setBluetoothAddress(String bluetoothAddress) {
        this.bluetoothAddress = bluetoothAddress;
    }

    public float getBikeWeight() {
        return bikeWeight;
    }

    public void setBikeWeight(float bikeWeight) {
        this.bikeWeight = bikeWeight;
    }

    public float getLoadWeight() {
        return loadWeight;
    }

    public void setLoadWeight(float loadWeight) {
        this.loadWeight = loadWeight;
    }

    public boolean isOnline() {
        return isOnline;
    }

    public void setOnline(boolean online) {
        isOnline = online;
    }

    public String getHardwareVersion() {
        return hardwareVersion;
    }

    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }

    public String getFirmwareVersion() {
        return firmwareVersion;
    }

    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }

    public String getBindDate() {
        return bindDate;
    }

    public void setBindDate(String bindDate) {
        this.bindDate = bindDate;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getAssistantMode() {
        return assistantMode;
    }

    public void setAssistantMode(String assistantMode) {
        this.assistantMode = assistantMode;
    }

    public int getBatteryNum() {
        return batteryNum;
    }

    public void setBatteryNum(int batteryNum) {

        this.batteryNum = batteryNum;
    }

    public String getBatteryModel() {
        return batteryModel;
    }

    public void setBatteryModel(String batteryModel) {
        this.batteryModel = batteryModel;
    }

    public String getMotorSeries() {
        return motorSeries;
    }

    public void setMotorSeries(String motorSeries) {
        this.motorSeries = motorSeries;
    }

    public String getWheelStyle() {
        return wheelStyle;
    }

    public void setWheelStyle(String wheelStyle) {
        this.wheelStyle = wheelStyle;
    }

    public int getBatteryRate() {
        return batteryRate;
    }

    public void setBatteryRate(int batteryRate) {
        this.batteryRate = batteryRate;
    }

    public int getUpHillPowerLevel() {
        return upHillPowerLevel;
    }

    public void setUpHillPowerLevel(int upHillPowerLevel) {
        this.upHillPowerLevel = upHillPowerLevel;
    }

    public float getUpHillAngle() {
        return upHillAngle;
    }

    public void setUpHillAngle(float upHillAngle) {
        this.upHillAngle = upHillAngle;
    }

    @Override
    public String toString() {
        return "BleMotorInfo{" +
                "motorId=" + motorId +
                ", imei='" + imei + '\'' +
                ", motorName='" + motorName + '\'' +
                ", powerLevel=" + powerLevel +
                ", circumference=" + circumference +
                ", bluetoothAddress='" + bluetoothAddress + '\'' +
                ", bikeWeight=" + bikeWeight +
                ", loadWeight=" + loadWeight +
                ", isOnline=" + isOnline +
                ", hardwareVersion='" + hardwareVersion + '\'' +
                ", firmwareVersion='" + firmwareVersion + '\'' +
                ", bindDate='" + bindDate + '\'' +
                ", statusCode='" + statusCode + '\'' +
                ", assistantMode='" + assistantMode + '\'' +
                ", batteryNum=" + batteryNum +
                ", batteryModel='" + batteryModel + '\'' +
                ", motorSeries='" + motorSeries + '\'' +
                ", wheelStyle='" + wheelStyle + '\'' +
                ", batteryRate=" + batteryRate +
                ", upHillPowerLevel=" + upHillPowerLevel +
                ", upHillAngle=" + upHillAngle +
                '}';
    }
}
